package strategicPattern;

import strategicPattern.skill.FlyWithWings;

/**
 * @author 帅小伙
 * @date 2022/1/2
 * @description
 */
public class StrategicTest {

    public static void main(String[] args) {
        MyDuck myDuck = new MyDuck();
        FlyWithWings flyWithWings = new FlyWithWings();
        myDuck.setFlySkill(flyWithWings);

        myDuck.quack();
        myDuck.fly();
    }
}
